package com.yunji.storage.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.storage.bo.AllocateListQueryBO;
import com.yunji.storage.bo.AllocateRemoveBO;
import com.yunji.storage.bo.AllocateSelectQueryBO;
import com.yunji.storage.domain.AllocateTicketDO;

import java.util.List;

public interface IAllocateTicketDao extends IBaseDao<AllocateTicketDO> {
    List<AllocateTicketDO> search(AllocateListQueryBO bo);

    AllocateTicketDO select(AllocateSelectQueryBO bo);

    boolean deleteByTicket(AllocateRemoveBO bo);

    boolean deleteDraft(Long... allocateIds);

    boolean create(AllocateTicketDO allocateTicket);

    boolean updateTicket(AllocateTicketDO allocateTicket);
}
